-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: add e2e prover #188
Feat: add e2e prover #188
Conversation
This pr is still buggy and not ready for review. Just make it to trigger CI for later commits. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The design looks super nice and barely just a few improvement feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! A well-thought-out and well refined design 👍 👍
let mut zkvm_witness = ZKVMWitnesses::default(); | ||
// assign opcode circuits | ||
zkvm_witness | ||
.assign_opcode_circuit::<AddInstruction<E>>(&zkvm_cs, &add_config, records) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Future TODO)
Just an further refine of api , if we make instruction config implementing a trait, then we can also keep xxx_config in zkvm_cs
. With that, the api can be further simplified to
zkvm_cs.register_opcode_circuit::<AddInstruction<E>>(); // no return value, config in maintained in zkvm_cs
...
zkvm_witness.assign_opcode_circuit::<AddInstruction<E>>(&zkvm_cs, records)
...
…212) _Follow-up to #188 The above PR started to depend on a special internal type, originally and confusingly named `Instruction`. This PR uses the intended public type `DecodedInstruction` and makes the weird one private. Co-authored-by: Aurélien Nicolas <[email protected]>
…212) _Follow-up to #188 The above PR started to depend on a special internal type, originally and confusingly named `Instruction`. This PR uses the intended public type `DecodedInstruction` and makes the weird one private. Co-authored-by: Aurélien Nicolas <[email protected]>
Fixes #96.
ZKVMProvingKey, ZKVMVerifyingKey, ZKVMConstraintSystem
.ceno_emul
crate to storeInstruction
inside step record.